from django.contrib import admin


# Register your models here.
from PersonManage.models import *


class DriverAdmin(admin.ModelAdmin):
    list_display = ['id', 'passwd', 'name', 'EntryTime', 'WorkingState', 'StopServeDate', 'StopTime',
                    'DriverType', 'ComplainedTimes', 'sex', 'Academic', 'Experience', 'phoneNum', 'ManageID',
                    'isRegister', 'isLogin']


class MessageAdmin(admin.ModelAdmin):
    list_display = ['id', 'ManageID', 'driverID', 'HandleTime', 'Content', 'Result']


class FeedBackAdmin(admin.ModelAdmin):
    list_display = ['CusServeID', 'DriverID', 'messageType', 'CustomerID', 'Details', 'ManagerID', 'FeedBackState']


admin.site.register(Driver, DriverAdmin)

admin.site.register(Message, MessageAdmin)

admin.site.register(FeedBack, FeedBackAdmin)